package com.cheyun.netsalev3.view

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import com.cheyun.netsalev3.R
import com.cheyun.netsalev3.databinding.ActivityModuleBinding
import com.cheyun.netsalev3.utils.BaseActivity
import com.cheyun.netsalev3.viewmodel.ModuleActivityViewModel


class ModuleActivity : BaseActivity<ActivityModuleBinding>() {
    override fun initViewModel(): ViewModel? {
        return ViewModelProviders.of(this).get(ModuleActivityViewModel::class.java)
    }

    override fun initContentView(): Int {
        return R.layout.activity_module
    }

    override fun initView() {
        if(intent.hasExtra("key")){
            var key = intent.getStringExtra("key");
            binding.viewModel?.skey = key;
        }
    }

    override fun initData() {
//        MyApplication.getInstance().initAcitvitys(ModuleActivity::class.java)
    }

}
